import request from '@/utils/request'

// 查询教研组设置列表
export function listSection(query) {
  return request({
    url: '/basice_info/section/list',
    method: 'get',
    params: query
  })
}

// 查询教研组设置详细
export function getSection(teachingResearchSectionId) {
  return request({
    url: '/basice_info/section/' + teachingResearchSectionId,
    method: 'get'
  })
}

// 新增教研组设置
export function addSection(data) {
  return request({
    url: '/basice_info/section',
    method: 'post',
    data: data
  })
}

// 修改教研组设置
export function updateSection(data) {
  return request({
    url: '/basice_info/section',
    method: 'put',
    data: data
  })
}

// 删除教研组设置
export function delSection(teachingResearchSectionId) {
  return request({
    url: '/basice_info/section/' + teachingResearchSectionId,
    method: 'delete'
  })
}
